package com.yangcan.code;


import android.app.Activity;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.widget.ImageView;

import com.yangcan.code.utils.Utils;

import dome.app.com.zbar.R;

public class CodeActivity extends Activity {
	private ImageView mImgCode;
	private Bitmap  bitmap;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_code);
		mImgCode = (ImageView) findViewById(R.id.recommendedplite_img_code);
		try {
			String url = "www.baidu.com";
			bitmap = Utils.generateBitmap(url, 240, 240);
			mImgCode.setImageBitmap(bitmap);

		} catch (

		Exception e)

		{
			e.printStackTrace();
		}

	}

}
